Piwik\Plugins\SitesManager\API D

Total Complexity 199
Dependencies 31
Dependents 27
Total lines 1,381
Lines of code 774
Logical lines of code 517
Comment lines 516
Methods 73
Properties 5

Methods 73

Method Rating Maintainability Complexity Lines of code
addSite()
B
36 16 75
updateSite()
B
38 16 66
getTimezoneName()
A
47 10 34
getSitesWithAdminAccess()
A
54 8 21
getSitesIdWithAtLeastViewAccess()
A
55 8 19
setSettingValue()
S
55 7 20
getTimezonesList()
S
52 6 25
getImageTrackingCode()
S
52 6 21
getPatternMatchSites()
S
58 6 15
setGlobalExcludedReferrers()
S
58 5 13
deleteSite()
S
55 4 19
getJavascriptTag()
S
57 4 15
getTimezonesListUTCOffsets()
S
55 4 15
checkAndReturnExcludedIps()
S
59 4 14
getExcludedReferrers()
S
60 4 14
enrichSite()
S
59 4 13
checkValidTimezone()
S
62 4 11
addSiteAliasUrls()
S
57 3 17
getSearchKeywordParametersGlobal()
S
64 3 11
renameGroup()
S
61 3 11
checkAndReturnType()
S
66 3 9
removeTrailingSlash()
S
69 3 6
getAllSites()
S
63 2 11
getSitesIdFromSiteUrl()
S
63 2 11
getSitesIdFromTimezones()
S
63 2 11
checkAndReturnCommaSeparatedStringList()
S
63 2 11
detectConsentManager()
S
62 2 10
getExcludedReferrersGlobal()
S
72 2 5
getDefaultTimezone()
S
70 2 7
getCurrencyList()
S
63 2 10
checkName()
S
73 2 5
getDefaultCurrency()
S
68 2 8
getIpsForRange()
S
68 2 7
checkValidCurrency()
S
71 2 5
getSitesFromIds()
S
67 2 8
saveMeasurableSettings()
S
70 2 6
getSitesFromGroup()
S
64 2 10
getSiteFromId()
S
66 2 9
getAllSitesId()
S
68 2 8
setSiteAliasUrls()
S
63 1 11
getSitesWithAtLeastViewAccess()
S
75 1 4
getSitesWithViewAccess()
S
76 1 4
getCurrencySymbols()
S
68 1 7
isTimezoneSupportEnabled()
S
77 1 4
getSitesId()
S
81 1 3
getModel()
S
78 1 3
getSiteUrlsFromId()
S
77 1 4
getUniqueSiteTimezones()
S
77 1 4
getSitesIdWithAdminAccess()
S
77 1 4
isValidUrl()
S
80 1 3
isValidIp()
S
79 1 3
getSitesGroups()
S
71 1 6
getNumWebsitesToDisplayPerPage()
S
77 1 4
updateSiteCreatedTime()
S
70 1 6
getSitesIdWithViewAccess()
S
81 1 3
setDefaultTimezone()
S
71 1 6
setGlobalExcludedUserAgents()
S
71 1 6
setGlobalExcludedIps()
S
69 1 7
setGlobalSearchParameters()
S
69 1 7
setAndValidateMeasurableSettings()
S
72 1 5
getSearchCategoryParametersGlobal()
S
77 1 4
getExcludedQueryParametersGlobal()
S
77 1 4
getExcludedUserAgentsGlobal()
S
77 1 4
getSiteSettings()
S
72 1 5
postUpdateWebsite()
S
71 1 6
getNormalizedUrls()
S
68 1 6
getKeepURLFragmentsGlobal()
S
76 1 4
setKeepURLFragmentsGlobal()
S
74 1 5
setGlobalExcludedQueryParameters()
S
69 1 7
getExcludedIpsGlobal()
S
77 1 4
getSitesIdWithWriteAccess()
S
81 1 3
setDefaultCurrency()
S
71 1 6
__construct()
S
71 1 6